package com.shou.lifecollege.modules.common.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shou.lifecollege.modules.common.entity.SysPermission;
import com.shou.lifecollege.modules.common.mapper.SysPermissionMapper;
import com.shou.lifecollege.modules.common.service.SysPermissionService;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.security.Permission;
import java.util.List;

/**
 * @Author: luotian
 * @Date: 2022/11/24 12:41
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {
    @Autowired
    private SysPermissionMapper sysPermissionMapper;
    @Override
    public List<SysPermission> getPermissionListById(String id) {
        if(!Strings.isEmpty(id))
        {
            return sysPermissionMapper.getPermissionListById(id);
        }
        return null;
    }
}
